<template>
	<!-- 返回顶部 -->
	<view class="goTop iconfont icon-fangxiangshang" @click="goTop"></view>
</template>

<script>
	export default {
		methods: {
			goTop(){
				// console.log("goTop");
				this.$emit("goTop");
			}
		}
	}
</script>

<style lang="scss">
.goTop{
	width: 80rpx;
	height: 80rpx;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--themeColor);
	color: #fff;
	position: fixed;
	bottom: 180rpx;
	right: 50rpx;
	z-index: 4;
	cursor: pointer;
	opacity: 0.8;
	
}
.opacity{
	opacity: 0.6;
}
</style>
